#!/bin/sh
echo "please input username:"
read name
echo "please imput number:"
read num

sum=0
while [ $sum -lt $num  ]
do 
    sum=` expr $sum + 1  `
    /usr/sbin/userdel -r $name$sum
done

